import  pickle
with open("data.dat","wb")  as f:
    name = '高淇'
    age = 20
    score = [90,80,70]
    resume = {"name":name,"age":age,"score":score}      #字典

    pickle.dump(resume,f)       #序列化

with open("data.dat","rb")  as f:
    resume2 = pickle.load(f)        #反序列化
    print(resume2)
